<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <title>Vue示例</title>
</head>

<body>
<div id="mount-div">

</div>
<script charset="utf-8" src="../js/vue.min.js" type="text/javascript"></script>
<script type="text/javascript">
    var MyComponent = Vue.extend({
        template: '<div>Hello:{{name}}</div>',
        data: function () {
            return {
                name: 'Aresn'
            }
        }
    });

    new MyComponent().$mount('#mount-div');
</script>
</body>

</html>